package com.example.flow.flow.model.vo;

import com.example.flow.flow.model.TaskParse;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 创建流程目标
 *
 * @author tangaq
 * 2023/6/13
 */
@Data
public class SaveFlowProcessReq {
    private String processId;
    @NotBlank(message = "流程名称为空")
    private String processName;
    private String description;
    @NotBlank(message = "流程类型为空")
    private String processType;
    private Integer maxValidDay;
    /**
     * 流程任务节点
     */
    @NotEmpty(message = "任务节点为空")
    private List<TaskParse> tasks;
}
